<%@ page import="musgo.Comentario" %>



<div class="fieldcontain ${hasErrors(bean: comentarioInstance, field: 'nombreComentarista', 'error')} required">
	<label for="nombreComentarista">
		<g:message code="comentario.nombreComentarista.label" default="Nombre Comentarista" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nombreComentarista" maxlength="100" required="" value="${comentarioInstance?.nombreComentarista}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: comentarioInstance, field: 'comentario', 'error')} required">
	<label for="comentario">
		<g:message code="comentario.comentario.label" default="Comentario" />
		<span class="required-indicator">*</span>
	</label>
	<g:textArea name="comentario" cols="40" rows="5" maxlength="3072" required="" value="${comentarioInstance?.comentario}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: comentarioInstance, field: 'album', 'error')} required">
	<label for="album">
		<g:message code="comentario.album.label" default="Album" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="album" name="album.id" from="${musgo.Album.list()}" optionKey="id" required="" value="${comentarioInstance?.album?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: comentarioInstance, field: 'cancion', 'error')} required">
	<label for="cancion">
		<g:message code="comentario.cancion.label" default="Cancion" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="cancion" name="cancion.id" from="${musgo.Cancion.list()}" optionKey="id" required="" value="${comentarioInstance?.cancion?.id}" class="many-to-one"/>
</div>

